package org.ccay.demo.tree;

import org.ccay.core.base.BaseResourceVO;

/**
 * 
 * 测试--树实体对象
 * @author chaowangbang
 * @since 2012-9-22
 */
public class TreeVO extends BaseResourceVO{

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = 9161632471193232412L;
	
	/**
	 * 节点ID
	 */
	private Integer id;
	
	/**
	 * 节点名称
	 */
	private String name;
	
	/**
	 * 节点链接
	 */
	private String url;
	
	/**
	 * 父节点
	 */
	private TreeVO parent;
	
	/**
	 * 父节点ID
	 */
	private Integer parentId;
	
	/**
	 * 是否有子节点
	 */
	private int hasChild;

	public int getHasChild() {
		return hasChild;
	}

	public void setHasChild(int hasChild) {
		this.hasChild = hasChild;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public TreeVO getParent() {
		return parent;
	}

	public void setParent(TreeVO parent) {
		this.parent = parent;
	}
	
	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

}
